<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ page import="com.psl.model.userlogin" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    userlogin userinfo = (userlogin) session.getAttribute("user");
    if (userinfo == null) {
        response.sendRedirect("/login.do");
    }%>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="/assets/css/content.css" rel="stylesheet" type="text/css">
    <style>
        #title {
            width: 92%;
            border: 0px;
            margin-bottom: 10px;
        }

        #title td {
            text-align: center;
            height: 10px;
            line-height: 150%;
            margin: 0 auto;
            width: 10%;
            font-size: 15px;
            font-weight: bold;
            color: #CC0000;
            letter-spacing: 2px;
        }
    </style>
</head>
<body>

<table cellspacing="0" cellpadding="0" id="title">
    <tbody>
    <tr>
        <td>
            山东宜利达流体设备有限公司暂收凭条
        </td>
    </tr>
    </tbody>
</table>
<table cellpadding="0" cellspacing="0"  class="datalist" align="center">
    <tbody>
    <tr>
        <td align="center" colspan="1">供货单位:${sp_name}
        </td>
        <td align="center" colspan="5">凭条编号:<span id="ticketno">
            ${h_ticketno}
        </span>
        </td>

        <td align="center" colspan="3">
            送货日期:${h_date}
        </td>

    </tr>
    <tr>
        <td colspan="9" height="25"></td>
    </tr>
    <tr>
        <th height="25" align="center">铸件/配件名称</th>
        <th align="center">规格</th>
        <th align="center">商标</th>
        <th align="center">压力</th>
        <th align="center">数量</th>
        <th align="center">单价</th>
        <th align="center">单重</th>
        <th align="center">总重</th>
        <th align="center">总金额</th>
    </tr>
    <tr>
        <c:forEach items="${pro}" var="p">

    <tr>
        <td height="25" align="center">${p.h_name}
        </td>
        <td height="25" align="center">${p.h_size}
        </td>

        <td height="25" align="center">${p.h_r}
        </td>
        <td height="25" align="center">${p.h_n}
        </td>
        <td height="25" align="center">${p.h_num}
        </td>
        <td height="25" align="center">${p.h_dj}
        </td>
        <td height="25" align="center">${p.h_uw}
        </td>
        <td height="25" align="center">
            <fmt:formatNumber value=" ${p.h_uw * p.h_num}" type="currency" pattern=".00"/>
        </td>
        <td height="25" align="center">
            <fmt:formatNumber value="${p.h_uw * p.h_num * p.h_dj}" type="currency" pattern=".00"/>
        </td>
    </tr>
    </c:forEach>
    <tr style="height: 25px;" align="center">
        <td colspan="9">
            <hr>
        </td>
    </tr>
    <tr style="height: 25px;" align="center"></tr>
    <tr align="center">

        <th height="25" align="center" colspan="1">
            供应商签字：
        </th>
        <th height="25" align="center" colspan="1"></th>
        <th height="25" align="center" colspan="1">
            检质员签字：
        </th>
        <th height="25" align="center" colspan="1"></th>
        <th height="25" align="center" colspan="1"></th>
        <th height="25" align="center" colspan="1">
            会计审核：王伟辉
        </th>
        <th height="25" align="center" colspan="1"></th>
        <th height="25" align="center" colspan="1"></th>
        <th height="25" align="center" colspan="1">
            仓库管理员：王崇凯
        </th>
    </tr>
    </tbody>
</table>
</body>
</html>